package com.ruoyi.system.service.zhaungxiuservice.shopService.impl;

import com.ruoyi.system.domain.zhuangxiumain.shopMain.ProductInfo;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.ProductLabel;
import com.ruoyi.system.domain.zhuangxiumain.vo.ProductInfoVo;
import com.ruoyi.system.mapper.zhuangxiumapper.shopMapper.ProductInfoMapper;
import com.ruoyi.system.mapper.zhuangxiumapper.shopMapper.ProductInfoVoMapper;
import com.ruoyi.system.service.zhaungxiuservice.shopService.ProductInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductInfoServiceImpl implements ProductInfoService {



    @Autowired(required = false)
    private ProductInfoVoMapper productInfoMapperVo;

    @Autowired(required = false)
    private ProductInfoMapper productInfoMapper;


    @Override
    public ProductInfo selectProductInfoById(Integer productId)
    {
        return productInfoMapper.selectProductInfoById(productId);
    }

    @Override
    public List<ProductInfo> selectProductInfoList(ProductInfo productInfo)
    {
        return productInfoMapper.selectProductInfoList(productInfo);
    }

    @Override
    public int insertProductInfo(ProductInfo productInfo)
    {
        return productInfoMapper.insertProductInfo(productInfo);
    }

    @Override
    public int updateProductInfo(ProductInfo productInfo)
    {
        return productInfoMapper.updateProductInfo(productInfo);
    }

    @Override
    public int deleteProductInfoByIds(Integer[] productIds)
    {
        return productInfoMapper.deleteProductInfoByIds(productIds);
    }

    @Override
    public int publishStatusUpdate(ProductInfo productInfo) {
        return productInfoMapper.publishStatusUpdate(productInfo);
    }

    @Override
    public int auditStatusUpdate(ProductInfo productInfo) {
        return productInfoMapper.auditStatusUpdate(productInfo);
    }

    @Override
    public int deleteProductInfoById(Integer productId)
    {
        return productInfoMapper.deleteProductInfoById(productId);
    }




    //    这个是在店铺订单中用的
    @Override
    public List<ProductInfo> findAllddList(ProductInfo productInfo) {
        return productInfoMapper.findAllddList(productInfo);
    }

    @Override
    public List<ProductInfo> findAllddListTwo(ProductInfo productInfo) {
        return productInfoMapper.findAllddListTwo(productInfo);
    }

    @Override
    public List<ProductLabel> selectProductLabelList(Integer productPicId) {
        return productInfoMapper.selectProductLabelList(productPicId);
    }

    @Override
    public List<ProductLabel> listlabelproduct(Integer productId) {
        return productInfoMapper.listlabelproduct(productId);
    }

    @Override
    public List<ProductInfo> superProductList(ProductInfo productInfo) {
        return productInfoMapper.superProductList(productInfo);
    }

    @Override
    public ProductInfo shangpinById(Integer productId) {
        return productInfoMapper.shangpinById(productId);
    }

    @Override
    public int changeauditStatus(ProductInfo productInfo) {
        return productInfoMapper.changeauditStatus(productInfo);
    }

    @Override
    public ProductLabel selectProductLabelById(Integer labelId) {
        return productInfoMapper.selectProductLabelById(labelId);
    }

    @Override
    public int insertProductLabel(ProductLabel productLabel) {
        return productInfoMapper.insertProductLabel(productLabel);
    }

    @Override
    public int updateProductLabel(ProductLabel productLabel) {
        return productInfoMapper.updateProductLabel(productLabel);
    }

    @Override
    public int deleteProductLabelByIds(Integer[] labelId) {
        return productInfoMapper.deleteProductLabelByIds(labelId);
    }

    @Override
    public List<ProductInfo> dianpuList(ProductInfo productInfo) {
        return productInfoMapper.dianpuList(productInfo);
    }

    @Override
    public ProductInfo selectListddId(Integer categoryId) {
        return productInfoMapper.selectListddId(categoryId);
    }
//******************************

}
